home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.atlanta.com!not-for-mail
- From: curts@compgen.com (Curt Smith)
- Newsgroups: comp.lang.c++,comp.unix.unixware.misc
- Subject: Re: Getting proper symbol names using G++ (unixware)
- Followup-To: comp.lang.c++,comp.unix.unixware.misc
- Date: 20 Mar 1996 12:55:04 GMT
- Organization: Internet Atlanta
- Message-ID: <4iov78$99@nntp.atlanta.com>
- References: <827178990.20294@dekard.demon.co.uk>
- NNTP-Posting-Host: gw1.compgen.com
- CC: mat@dekard.demon.co.uk
- X-Newsreader: TIN [UNIX 1.3 950515BETA PL0]
-
- Matt Mower (mat@dekard.demon.co.uk) wrote:
- : Using g++ v2.7.2 on my UnixWare system the list of undefined symbols
- : is very nearly unreadable. Instead of saying
- :
- : SomeClass::AMemberFunction undefined in module .....
- :
- : I get what I suppose is the mangled function name, and that's a bit
- : harder to follow.
- :
- : Can anyone suggest where I may have gone wrong with g++, and how I
- : might get it to give me unmangled names.
-
- In your .c and .h files bound the inclusion of system headers with:
-
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #include <stdio.h>
-
- #ifdef __cplusplus
- }
- #endif
-
-
- In your function prototype headers you bound the prototype with:
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- foo ( int a );
-
- #ifdef __cplusplus
- }
- #endif
-
- --
-
- Curt Smith
- curts@compgen.com
-
-